<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./node_modules/vue/dist/vue.min.js"></script>
</head>
<body>
    <div id="app">
        hello vue2!
        <hr>
        <input type="text" @keyup.enter="f1" name="" id="">
    </div>
    <script>
        const app = new Vue({
            el:"#app",
            data:{
                age:3
            },
            methods:{
                f1(){
                    console.log("i am f1!");
                }
            }
        })
    </script>
</body>
</html>